package com.xy.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author pengfei.zhang
 * @since 2017-06-22
 */
@TableName("tb_dictionary")
public class Dictionary extends Model<Dictionary> {

    private static final long serialVersionUID = 1L;

    /**
     * 字典表id
     */
	@TableId("dict_id")
	private Integer dictId;
    /**
     * 字典表名称
     */
	@TableField("dict_name")
	private String dictName;
    /**
     * 字典表英文值 例如goods_type
     */
	@TableField("dict_value")
	private String dictValue;
    /**
     * 字典表具体值 例如商品类项值“轮胎”
     */
	@TableField("dict_text")
	private String dictText;
    /**
     * 上级id
     */
	@TableField("dict_parent_id")
	private Integer dictParentId;


	public Integer getDictId() {
		return dictId;
	}

	public void setDictId(Integer dictId) {
		this.dictId = dictId;
	}

	public String getDictName() {
		return dictName;
	}

	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

	public String getDictValue() {
		return dictValue;
	}

	public void setDictValue(String dictValue) {
		this.dictValue = dictValue;
	}

	public String getDictText() {
		return dictText;
	}

	public void setDictText(String dictText) {
		this.dictText = dictText;
	}

	public Integer getDictParentId() {
		return dictParentId;
	}

	public void setDictParentId(Integer dictParentId) {
		this.dictParentId = dictParentId;
	}

	@Override
	protected Serializable pkVal() {
		return this.dictId;
	}

}
